package com.example.cash.craft.service;

import com.example.cash.craft.pojo.core.CurrentPrincipal;
import com.example.cash.craft.pojo.vo.PageData;
import com.example.cash.craft.pojo.vo.RewardPointsLogVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IRewardPointsLogService {

    int sumByUserId(Long userId);

    PageData<RewardPointsLogVO> listByUser(Integer page, CurrentPrincipal currentPrincipal);

}
